package com.zxx.flowerstore.entity.enums;

/**
 * @ClassName CodeRuleEnum
 * @Author Admin
 * @Date 2021/3/20 18:29
 * @Description CodeRuleEnum
 * @Version 1.0
 */
public enum CodeRuleEnum {

    USER_ID("flower_user.user_id","用户编号L");
    private String code;
    private String value;

    private CodeRuleEnum(String code, String value) {
        this.code = code;
        this.value = value;
    }

    public static String getValue(String code) {
        for (CodeRuleEnum submitTypeEnum : CodeRuleEnum.values()) {
            if (submitTypeEnum.code.equals(code)) {
                return submitTypeEnum.value;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
